<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head th:fragment="head(title)">
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title th:text="${title}">监控工具平台</title>
    <link rel="stylesheet" href="/monitoring/css/element-ui.css">
    <link rel="stylesheet" href="/monitoring/css/custom.css">
    <style>
        .header-container {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 0 20px;
            background-color: #409EFF;
            color: white;
            height: 60px;
        }
        .logo h1 {
            margin: 0;
            font-size: 20px;
        }
        .navbar-nav {
            display: flex;
            list-style: none;
            margin: 0;
            padding: 0;
        }
        .nav-item {
            margin: 0 10px;
        }
        .nav-link {
            color: white;
            text-decoration: none;
            padding: 5px 10px;
            border-radius: 4px;
        }
        .nav-item.active .nav-link {
            background-color: rgba(255, 255, 255, 0.2);
        }
        .nav-link:hover {
            background-color: rgba(255, 255, 255, 0.1);
        }
    </style>
</head>
<body>
    <header th:fragment="header">
        <div class="header-container">
            <div class="logo">
                <h1>监控工具平台</h1>
            </div>
            <div class="nav">
                <ul class="navbar-nav mr-auto">
                    <li class="nav-item" th:classappend="${#httpServletRequest.getRequestURI() == '/' ? 'active' : ''}">
                        <a class="nav-link" href="/">首页</a>
                    </li>
                    <!-- <li class="nav-item" th:classappend="${#httpServletRequest.getRequestURI() == '/dashboard' ? 'active' : ''}">
                        <a class="nav-link" href="/dashboard">仪表盘</a>
                    </li> -->
                    <li class="nav-item" th:classappend="${#httpServletRequest.getRequestURI() == '/config' ? 'active' : ''}">
                        <a class="nav-link" href="/config">配置管理</a>
                    </li>
                    <!-- <li class="nav-item" th:classappend="${#httpServletRequest.getRequestURI() == '/jmx/guide' ? 'active' : ''}">
                        <a class="nav-link" href="/jmx/guide">JMX指南</a>
                    </li> -->
                </ul>
            </div>
        </div>
    </header>
</body>
</html> 